package com.dartfar.workflow.service;

import java.util.List;

import com.dartfar.base.service.BaseService;
import com.dartfar.workflow.model.WorkflowDeployment;

/**
 * 流程定义服务
 * @author 王琦
 *
 */
public interface WorkflowDeploymentService extends BaseService<WorkflowDeployment> {

	/**
	 * 部署流程定义
	 * @param filePath
	 */
	public void deployment(String fileName, String filePath, int id);
	
	/**
	 * 查找workflowFiles目录下工作流文件总数
	 */
	public Long getWorkflowFileCount();
	
	/**
	 * 查找到WorkflowFiles目录下的所有工作流文件信息
	 * @param start
	 * @param limit
	 * @return
	 */
	public List<WorkflowDeployment> findWorkflowFile(Integer start, Integer limit);
	
	/**
	 * 清除流程定义
	 * @param deploy
	 */
	public void clearDeployment(WorkflowDeployment deploy);
	
}
